//
//  SAIInputBackgroundView.swift
//  SAIInputBar
//
//  Created by SAGESSE on 8/31/16.
//  Copyright © 2016-2017 SAGESSE. All rights reserved.
//

import UIKit

internal class SAIInputBackgroundView: UIToolbar {
    
    convenience init() {
        self.init(frame: CGRect.zero)
    }
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        self.buildLine()
    }
    
    required init?(coder: NSCoder) {
        super.init(coder: coder)
    }
    
    func buildLine () {
        
        let line = UIImageView()
        line.backgroundColor = KQCHAT_COLOR(219, 219, 219)
        self.addSubview(line)
        line.snp.makeConstraints { (make) in
            make.top.equalToSuperview()
            make.leading.equalToSuperview()
            make.trailing.equalToSuperview()
            make.height.equalTo(1.0 / UIScreen.main.scale)
        }
        
    }

}
